linux下oh |
您所在的位置:网站首页 › 如何安装oh my zsh › linux下oh |
oh-my-zsh的强大和易用性就不多说了,这里仅介绍其安装方法及易用性相关配置。 安装zsh 安装Ubuntu apt install zsh CentOs yum install zsh 确认zsh --version 设为默认shellUbuntu chsh -s $(which zsh) CentOs chsh -s /bin/zsh 安装oh-my-zshcurl sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" wget sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" 如果github访问问题可使用gitee源: curl sh -c "$(curl -fsSL https://gitee.com/gloriaied/oh-my-zsh/raw/master/tools/install.sh)" wget sh -c "$(wget https://gitee.com/gloriaied/oh-my-zsh/raw/master/tools/install.sh -O -)" 安装成功后会显示以下 vim ~/.zshrc 主题主题预览可在这里看到,个人习惯用ys: ![]() gitee: git clone https://gitee.com/gloriaied/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 修改配置:plugins=(zsh-syntax-highlighting) zsh-autosuggestions:输入命令行时自动补全 此插件需要安装:git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestionsgitee: git clone https://gitee.com/gloriaied/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions 修改配置:plugins=(zsh-autosuggestions) 同样,修改完需要重新加载配置文件source ~/.zshrc。 其他 可配置history格式 HIST_STAMPS="yyyy-mm-dd"zsh_stats查看最常用到的前20条命令take 快速创建并进入(多级)文件夹 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |